//
// Created by 123 on 2024/12/31.
//
#include "iostream"
using namespace std;

//函数重载注意事项
//引用作为重载条件
void func(int& a){
    cout << "func(int& a)调用" << endl;
}
void func(const int& a){
    cout << "func(const int& a)调用" << endl;
}
//重载碰到函数默认参数
void func22(int a, int b=20){
    cout << "func22(int a, int b=20)调用" << endl;
}
void func22(int a){
    cout << "func22(int a)调用" << endl;
}

int main051(){
    int a = 10;
    func(a);//调用无const
    func(10);//调用有const


    return 0;
}